public class Test3_1 {
    public static void main(String[] args) {
        StringBuilder result = new StringBuilder();
        for (int i = 100; i < 1000; i++) {
            int hundreds = i / 100;    
            int tens = (i / 10) % 10; 
            int units = i % 10;
            if (i == hundreds*hundreds*hundreds + tens*tens*tens + units*units*units) {
                if (result.length() > 0) result.append(",");
                result.append(i);
            }
        }
        System.out.println(result);
    }
}
